Java version history
The Java language has undergone several changes since JDK 1.0 as well as numerous additions of classes and packages to the standard library. Since J2SE 1.4, the evolution of the Java language has been governed by the Java Community Process (JCP), which uses Java Specification Requests (JSRs) to propose and specify additions and changes to the Java platform. The language is specified by the Java Language Specification (JLS); changes to the JLS are managed under JSR 901.
In addition to the language changes, much more dramatic changes have been made to the Java class library over the years, which has grown from a few hundred classes in JDK 1.0 to over three thousand in J2SE 5. Entire new APIs, such as Swing and Java2D, have been introduced, and many of the original JDK 1.0 classes and methods have been deprecated.
Some programs allow conversion of Java programs from one version of the Java platform to an older one (for example Java 5.0 backported to 1.4) (see Java backporting tools).
JDK 1.0 (January 23, 1996)
Codename Oak. Initial release[1][2] The first stable version was the JDK 1.0.2. is called Java 1[2]
JDK 1.1 (February 19, 1997)
Major additions included:[3]
J2SE 1.2 (December 8, 1998)
Codename Playground. This and subsequent releases through J2SE 5.0 were rebranded retrospectively Java 2 and the version name "J2SE" (Java 2 Platform, Standard Edition) replaced JDK to distinguish the base platform from J2EE (Java 2 Platform, Enterprise Edition) and J2ME (Java 2 Platform, Micro Edition). Major additions included:[4]
J2SE 1.3 (May 8, 2000)
Codename Kestrel. The most notable changes were:[5][6]
J2SE 1.4 (February 6, 2002)
Codename Merlin. This was the first release of the Java platform developed under the Java Community Process as JSR 59. Major changes included:[7][8]
- Language changes
- Library improvements
J2SE 5.0 (September 30, 2004)
Codename Tiger. Originally numbered 1.5, which is still used as the internal version number.[9] This version was developed under JSR 176.
J2SE 5.0 entered its end-of-life on April 8, 2008 and is no longer supported by Sun as of November 3, 2009.[10]
Tiger added a number of significant new language features:[11][12]
- Generics: Provides compile-time (static) type safety for collections and eliminates the need for most typecasts (type conversion). (Specified by JSR 14.)
- Metadata: Also called annotations; allows language constructs such as classes and methods to be tagged with additional data, which can then be processed by metadata-aware utilities. (Specified by JSR 175.)
- Autoboxing/unboxing: Automatic conversions between primitive types (such as
int
) and primitive wrapper classes (such as Integer
). (Specified by JSR 201.)
- Enumerations: The
enum
keyword creates a typesafe, ordered list of values (such as Day.MONDAY
, Day.TUESDAY
, etc.). Previously this could only be achieved by non-typesafe constant integers or manually constructed classes (typesafe enum pattern). (Specified by JSR 201.)
- Varargs: The last parameter of a method can now be declared using a type name followed by three dots (e.g.
void drawtext(String... lines)
). In the calling code any number of parameters of that type can be used and they are then placed in an array to be passed to the method, or alternatively the calling code can pass an array of that type.
- Enhanced
for each
loop: The for
loop syntax is extended with special syntax for iterating over each member of either an array or any Iterable
, such as the standard Collection
classes, using a construct of the form:
void displayWidgets (Iterable<Widget> widgets) {
for (Widget w: widgets) {
w.display();
}
}
This example iterates over the Iterable
object widgets
, assigning each of its items in turn to the variable w
, and then calling the Widget
method display()
for each item. (Specified by JSR 201.)
There were also the following improvements to the standard libraries:
Java 5 is the last release of Java to officially support the Microsoft Windows 9x line (Windows 95, Windows 98, Windows ME). [1] Unofficially, Java SE 6 Update 7 (1.6.0.7) is the last version of Java to be shown working on this family of operating systems. [2]
Java SE 6 (December 11, 2006)
Codename Mustang. As of this version, Sun replaced the name "J2SE" with Java SE and dropped the ".0" from the version number.[14] Internal numbering for developers remains 1.6.0.[15] This version was developed under JSR 270.
During the development phase, new builds including enhancements and bug fixes were released approximately weekly. Beta versions were released in February and June 2006, leading up to a final release that occurred on December 11, 2006.
Major changes included in this version:[16][17]
- Support for older Win9x versions dropped. Unofficially Java 6 Update 7 is the last release of Java shown to work on these versions of Windows. This is believed to be due to the major changes in Update 10.
- Scripting Language Support (JSR 223): Generic API for tight integration with scripting languages, and built-in Mozilla JavaScript Rhino integration
- Dramatic performance improvements for the core platform,[18][19] and Swing.
- Improved Web Service support through JAX-WS (JSR 224)
- JDBC 4.0 support (JSR 221).
- Java Compiler API (JSR 199): an API allowing a Java program to select and invoke a Java Compiler programmatically.
- Upgrade of JAXB to version 2.0: Including integration of a StAX parser.
- Support for pluggable annotations (JSR 269)[20]
- Many GUI improvements, such as integration of SwingWorker in the API, table sorting and filtering, and true Swing double-buffering (eliminating the gray-area effect).
- JVM improvements include: synchronization and compiler performance optimizations, new algorithms and upgrades to existing garbage collection algorithms, and application start-up performance.[21]
Java 6 updates
After Java 6 release, Sun released several updates which, while not changing any public API, enhanced end-user usability or fixed bugs.[22]
Release |
Release Date |
Highlights |
Java SE 6 Update 10[23] |
2008-10-15 |
Major changes for this update include:[23][24]
- Java Deployment Toolkit, a set of JavaScript functions to ease the deployment of applets and Java Web Start applications.[25]
- Java Kernel, a small installer including only the most commonly used JRE classes. Other packages are downloaded when needed.
- Enhanced updater.
- Enhanced versioning and pack200 support: server-side support is no longer required.[26]
- Java Quick Starter, to improve cold start-up time.
- Improved performance of Java2D graphics primitives on Windows, using Direct3D and hardware acceleration.
- A new Swing look and feel called Nimbus and based on synth.[27]
- Next-Generation Java Plug-In: applets now run in a separate process and support many features of Web Start applications.[28]
|
Java SE 6 Update 11[29] |
2008-12-03 |
13 security fixes[30] |
Java SE 6 Update 12[31] |
2008-12-12 |
no security fixes; 64-bit Java plug-in (for 64-bit web browsers only); Windows Server 2008 support; performance improvements of graphics and JavaFX applications |
Java SE 6 Update 14[32] |
2009-05-28 |
This release includes extensive performance updates to the HotSpot JIT compiler, compressed pointers for 64-bit machines, as well as support for the G1 (Garbage First) low pause garbage collector.[33][34]
The -XX:+DoEscapeAnalysis option directs the HotSpot JIT compiler to use escape analysis to determine if local objects can be allocated on the stack instead of the heap.[35]
Some developers have noticed an issue introduced in this release which causes debuggers to miss breakpoints seemingly randomly.[36] Sun has a corresponding bug, which is tracking the issue. The workaround applies to the Client and Server VMs.[37] Using the -XX:+UseParallelGC option will prevent the failure. Another workaround is to roll back to update 13, or to upgrade to update 16.
|
Java SE 6 Update 15 |
2009-08-04 |
introduced patch-in-place functionality[38] |
Java SE 6 Update 16 |
2009-08-11 |
Fixes the issue introduced in update 14 which caused debuggers to miss breakpoints.[39] |
Java SE 6 Update 17[40] |
2009-11-04 |
6+ security fixes; 2 new root certificates |
Java SE 6 Update 18[41] |
2010-01-13 |
no security fixes; support for Ubuntu 8.04 LTS Desktop Edition, SLES 11; Windows 7, Red Hat Enterprise Linux 5.3, Firefox 3.6; VisualVM 1.2; updated Java DB; many performance improvements |
Java SE 6 Update 19[42] |
2010-03-30 |
security fixes; root certificate changes: seven new, three removed, five replaced with stronger signature algorithms; interim fix for TLS renegotiation attack |
Java SE 6 Update 20[43] |
2010-04-15 |
two security fixes |
Java SE 6 Update 21[44] |
2010-07-07 |
no security fixes; support for Red Hat Enterprise Linux 5.4 and 5.5, Oracle Enterprise Linux 4.8, 5.4, 5.5; Google Chrome 4 support; support for Customized Loading Progress Indicators; Hotspot VM 17.0; VisualVM 1.2.2 |
Java SE 6 Update 22[45] |
2010-10-12 |
29 security fixes; RFC 5746 support |
Java SE 6 Update 23[46] |
2010-12-08 |
no security fixes; better support for right-to-left languages |
Java SE 6 Update 24[47] |
2011-02-15 |
21 security fixes; updated Java DB |
Java SE 6 Update 25 |
2011-03-21 |
no security fixes; support for Internet Explorer 9, Firefox 4 and Chrome 10; improved BigDecimal; includes "tiered" compilation in the Server VM that enables it to start quickly as does the Client VM, while achieving better peak performance. This feature is enabled by specifying -server and -XX:+TieredCompilation command options.[48] |
Java SE 6 Update 26[49] |
2011-06-07 |
17 new security fixes[50] |
Java SE 6 Update 27[51] |
2011-08-16 |
no security fixes; certification for Firefox 5 |
Java SE 6 Update 29[52] |
2011-10-18 |
20 security fixes, various bug fixes[53] |
Java SE 6 Update 30[54] |
2011-12-12 |
no security fixes; fix for SSL regression in Update 29 |
Java SE 7 (July 28, 2011)
Java 7 (codename Dolphin[55]) is a major update to Java which was launched on July 7 of 2011[56] and was made available for developers on July 28, 2011.[57] The development period was organized into thirteen milestones; on February 18, 2011, milestone 13 (the last milestone) was reached.[58][59] On average, 8 builds (which generally included enhancements and bug fixes) were released per milestone. The feature list at the OpenJDK 7 project lists many of the feature changes.
Feature additions for Java 7 include:[60]
-
- Strings in switch[63]
- Automatic resource management in try-statement[64]
- Improved type inference for generic instance creation[65]
- Simplified varargs method declaration[66]
- Binary integer literals[67]
- Allowing underscores in numeric literals[68]
- Catching multiple exception types and rethrowing exceptions with improved type checking[69]
- Concurrency utilities under JSR 166[70]
- New file I/O library to enhance platform independence and add support for metadata and symbolic links. The new packages are java.nio.file and java.nio.file.attribute[71][72]
- Library-level support for Elliptic curve cryptography algorithms
- An XRender pipeline for Java 2D, which improves handling of features specific to modern GPUs
- New platform APIs for the graphics features originally planned for release in Java version 6u10
- Enhanced library-level support for new network protocols, including SCTP and Sockets Direct Protocol
- Upstream updates to XML and Unicode
Lambda (Java's implementation of lambda functions), Jigsaw (Java's implementation of modules), and part of Coin were dropped from Java 7. Java 8 will be released with the remaining features in summer 2013.[73]
Java 7 updates
Oracle plans to issue updates to the Java 7 family on a quarterly basis.
Release |
Release Date |
Highlights |
Java SE 7[74] |
2011-07-07 |
initial release |
Java SE 7 Update 1[75] |
2011-10-18 |
20 security fixes, other bug fixes |
Java SE 7 Update 2[76] |
2011-12-12 |
0 security fixes, other bug fixes |
Java SE 8
Java 8 is expected in Summer 2013 [73] and will include at a minimum the features that were planned for Java 7 but later deferred.
- Modularization of the JDK under Project Jigsaw[77][78]
- Language-level support for lambda expressions (officially, lambda expressions; unofficially, closures) under Project Lambda.[79] There was an ongoing debate in the Java community on whether to add support for lambda expressions.[80][81] Sun later declared that lambda expressions would be included in Java 8 and asked for community input to refine the feature.[82]
- Parts of project Coin that are not included in Java 7
- Tight integration with JavaFX [83]
Java 9
At JavaOne 2011, Oracle discussed features they hope to have in Java 9, including better support for multi-gigabyte heaps, better native code integration, and a self-tuning JVM.[84]
See also
References
- ^ Version 1.0 press release, Sun.
- ^ a b http://www.oracle.com/technetwork/java/chapter1-159190.pdf
- ^ Version 1.1 press release, Sun.
- ^ Version 1.2 press release, Sun.
- ^ Version 1.3 press release, Sun.
- ^ Version 1.3 full list of changes, Sun.
- ^ Version 1.4 press release.
- ^ Version full 1.4 list of changes.
- ^ Version 5 release notes, Sun.
- ^ Java SE Downloads - Previous Release - JDK 5
- ^ Version 1.5 press release.
- ^ Version 1.5 full list of changes.
- ^ Goetz, Brian (2006). Java Concurrency in Practice. Addison-Wesley. p. xvii. ISBN 0-321-34960-1.
- ^ Java brand naming.
- ^ Version 6, Java webnotes, Sun.
- ^ Version 1.6 press release.
- ^ Version 1.6 full list of changes.
- ^ Java Lobby.
- ^ Mustang’s HotSpot, Sun weblogs.
- ^ Darcy, Joe (2008-08-03). "An apt replacement". http://blogs.sun.com/darcy/date/20090727. Retrieved 2009-07-29.
- ^ "Java SE 6 Performance White Paper". 2007-10-25. http://java.sun.com/performance/reference/whitepapers/6_performance.html. Retrieved 2010-02-04.
- ^ Java SE 6 Update Release Notes
- ^ a b Java SE 6 Update 10 Overview
- ^ Introducing Java SE 6 Update 10
- ^ Java Deployment Toolkit
- ^ Version Download and Pack200 Support
- ^ Nimbus
- ^ Release Notes for the Next-Generation Java Plug-In Technology
- ^ "Sun Java 6 Update 11 Available Now, Waiting on JavaFX". FindMySoft. http://www.findmysoft.com/news/Sun-Java-6-Update-11-Available-Now-Waiting-on-JavaFX/. Retrieved 2009-11-13.
- ^ Update Release Notes, Changes in 1.6.0_11
- ^ "Changes in 1.6.0_12 (6u12)". Sun Microsystems. http://java.sun.com/javase/6/webnotes/6u12.html. Retrieved 2009-05-30.
- ^ "Update Release Notes". Sun Microsystems. http://java.sun.com/javase/6/webnotes/ReleaseNotes.html. Retrieved 2009-05-30.
- ^ Humble, Charles (2008-05-13). "JavaOne: Garbage First". infoq.com. http://www.infoq.com/news/2008/05/g1. Retrieved 2008-09-07.
- ^ Coward, Dany (2008-11-12). "Java VM: Trying a new Garbage Collector for JDK 7". http://blogs.sun.com/theplanetarium/entry/java_vm_trying_a_new. Retrieved 2008-11-15.
- ^ "Java SE 6 Update 14 Release Notes". Sun Microsystems. http://java.sun.com/javase/6/webnotes/6u14.html. Retrieved 2010-01-04.
- ^ "Breakpoints fail to hit under JDK 1.6.0_14". https://bugs.eclipse.org/bugs/show_bug.cgi?id=279137#c14. Retrieved 2009-07-14.
- ^ "Bug ID: 6862295 JDWP threadid changes during debugging session (leading to ignored breakpoints)". http://bugs.sun.com/view_bug.do?bug_id=6862295. Retrieved 2009-07-22.
- ^ "Changes in 1.6.0_15 (6u15)". Sun Microsystems. http://www.oracle.com/technetwork/java/javase/6u15-142514.html.
- ^ "Changes in 1.6.0_16 (6u16)". Sun Microsystems. 2009-08-11. http://java.sun.com/javase/6/webnotes/6u16.html. Retrieved 2009-08-11.
- ^ "Changes in 1.6.0_17 (6u17)". Sun Microsystems. 2009-11-04. http://java.sun.com/javase/6/webnotes/6u17.html. Retrieved 2009-11-13.
- ^ "Changes in 1.6.0_18 (6u18)". Sun Microsystems. 2010-01-13. http://java.sun.com/javase/6/webnotes/6u18.html. Retrieved 2010-01-18.
- ^ "Changes in 1.6.0_19 (6u19)". Sun Microsystems. 2010-03-30. http://java.sun.com/javase/6/webnotes/6u19.html. Retrieved 2010-03-30.
- ^ "Changes in 1.6.0_20 (6u20)". Sun Microsystems. 2010-04-15. http://java.sun.com/javase/6/webnotes/6u20.html. Retrieved 2010-04-15.
- ^ "Changes in 1.6.0_21 (6u21)". Sun Microsystems. 2010-07-07. http://java.sun.com/javase/6/webnotes/6u21.html. Retrieved 2010-07-07.
- ^ "Changes in 1.6.0_22 (6u22)". Oracle Corporation. 2010-10-12. http://www.oracle.com/technetwork/java/javase/6u22releasenotes-176121.html. Retrieved 2010-10-12.
- ^ "Java SE 6 Update 23". Oracle Corporation. 2010-12-08. http://www.oracle.com/technetwork/java/javase/6u23releasenotes-191058.html. Retrieved 2010-12-08.
- ^ "Java SE 6 Update 24". Oracle Corporation. 2011-02-15. http://www.oracle.com/technetwork/java/javase/6u24releasenotes-307697.html. Retrieved 2011-02-15.
- ^ "Java SE 6 Update 25". Oracle Corporation. 2011-04-11. http://www.oracle.com/technetwork/java/javase/6u25releasenotes-356444.html. Retrieved 2011-04-24.
- ^ "Java SE 6 Update 26". Oracle Corporation. 2011-06-07. http://www.oracle.com/technetwork/java/javase/6u26releasenotes-401875.html. Retrieved 2011-06-07.
- ^ Oracle Java SE Critical Patch Update Advisory - June 2011
- ^ "Java SE 6 Update 27". Oracle Corporation. 2011-08-16. http://www.oracle.com/technetwork/java/javase/6u27-relnotes-444147.html. Retrieved 2011-08-16.
- ^ "Java SE 6 Update 29". Oracle Corporation. 2011-10-18. http://www.oracle.com/technetwork/java/javase/6u29-relnotes-507960.html. Retrieved 2011-10-18.
- ^ Oracle Java SE Critical Patch Update Advisory - October 2011
- ^ "Java SE 6 Update 30". Oracle Corporation. http://www.oracle.com/technetwork/java/javase/6u30-relnotes-1394870.html. Retrieved 2011-12-13.
- ^ JDK7, Sun.
- ^ http://www.oracle.com/webapps/events/ns/EventsDetail.jsp?p_eventId=134208&src=7299693&src=7299693&Act=18
- ^ "JDK 7 Schedule". http://openjdk.java.net/projects/jdk7/.
- ^ JDK 7 at OpenJDK
- ^ http://openjdk.java.net/projects/jdk7/milestones/
- ^ Miller, Alex. "Java 7". http://tech.puredanger.com/java7. Retrieved 2008-05-30.
- ^ "Compressed oops in the Hotspot JVM". OpenJDK. http://wikis.sun.com/display/HotSpotInternals/CompressedOops. Retrieved 2010-04-16.
- ^ http://download.oracle.com/javase/7/docs/technotes/guides/language/enhancements.html#javase7
- ^ http://download.oracle.com/javase/7/docs/technotes/guides/language/strings-switch.html
- ^ http://download.oracle.com/javase/7/docs/technotes/guides/language/try-with-resources.html
- ^ http://download.oracle.com/javase/7/docs/technotes/guides/language/type-inference-generic-instance-creation.html
- ^ http://download.oracle.com/javase/7/docs/technotes/guides/language/non-reifiable-varargs.html
- ^ http://download.oracle.com/javase/7/docs/technotes/guides/language/binary-literals.html
- ^ http://download.oracle.com/javase/7/docs/technotes/guides/language/underscores-literals.html
- ^ http://download.oracle.com/javase/7/docs/technotes/guides/language/catch-multiple.html
- ^ "Concurrency JSR-166". http://gee.cs.oswego.edu/dl/concurrency-interest/index.html. Retrieved 2010-04-16.
- ^ http://java.sun.com/docs/books/tutorial/essential/io/fileio.html
- ^ http://java.sun.com/docs/books/tutorial/essential/io/legacy.html
- ^ a b "JavaOne 2011 Keynote". Oracle. http://blogs.oracle.com/javaone/resource/java_keynote/slide_16_full_size.gif.
- ^ Java SE 7 Release Notes
- ^ Update Release Notes, Java SE 7 Update 1
- ^ Update Release Notes, Java SE 7 Update 2
- ^ "Project Jigsaw". OpenJDK. http://openjdk.java.net/projects/jigsaw/.
- ^ "Java Module-System Requirements — DRAFT 12". Oracle. http://openjdk.java.net/projects/jigsaw/doc/draft-java-module-system-requirements-12.
- ^ "Java 7 Features". Sun Microsystems. 2010-02-09. http://openjdk.java.net/projects/jdk7/features/#f700. Retrieved 2010-04-16.
- ^ Gafter, Neal (2006-08-18). "Closures for Java". http://gafter.blogspot.com/2006/08/closures-for-java.html. Retrieved 2008-03-09.
- ^ Gosling, James (2008-01-31). "Closures". http://blogs.sun.com/jag/entry/closures. Retrieved 2008-03-09.
- ^ Reinhold, Mark (2009-11-28). "Closures for Java". http://blogs.sun.com/mr/entry/closures. Retrieved 2009-11-24.
- ^ http://javafx.com/roadmap/#4
- ^ "JavaOne: JavaFX 2, Java on iOS". http://drdobbs.com/blogs/java/231900029.
External links
|
|
Java platform |
|
|
|
Sun technologies |
|
|
Platform technologies |
|
|
Major third-party technologies |
|
|
History |
|
|
Major programming languages |
|
|
Java conferences |
|
|